-- GENERATED SPELL FOR [Plagued Maggot] --


function spell0_10536(pUnit, Event) --@Maggot Slime,n/a--
pUnit:FullCastSpellOnTarget(16449,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10536', 20255, 1)
end

function Sorts_10536(pUnit, Event)
local choix_sorts_10536 = math.random(0, 0)
if choix_sorts_10536 == 0 then
pUnit:RegisterEvent('spell0_10536', 1, 1)
end
end

function mob10536_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10536', math.random(1500, 3000), 1)
end

function mob10536_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10536_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10536_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10536, 1, 'mob10536_Action')
RegisterUnitEvent(10536, 2, 'mob10536_Leave')
RegisterUnitEvent(10536, 3, 'mob10536_Kill')
RegisterUnitEvent(10536, 4, 'mob10536_Die')
